package org.longs.converter.parser;

import java.util.ArrayList;
import java.util.List;

public class ParserManager {

    private final List<Parser> container;


    private static ParserManager singleton;

    private ParserManager() {
        container = new ArrayList<>();
        container.add(new CompleteParser());
        container.add(new IgnorePixelsParser());
        container.add(new NormalPixelsParser());
        container.add(new RepeatAlphaParser());
        container.add(new RepeatPixelsParser());
        container.add(new SeparateAlphaParser());
    }

    public List<Parser> getContainer() {
        return container;
    }


    public static ParserManager getSingleton() {
        if (singleton == null) {
            singleton = new ParserManager();
        }
        return singleton;
    }


}
